<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<f:metadata>
	<f:viewParam name="artTitle" value="#{detailArticleBean.titre}" />
	<f:event type="preRenderView" listener="#{detailArticleBean.init}" />
</f:metadata>

<ui:composition template="../../template.xhtml">

	<ui:define name="titre">Detail Article</ui:define>

	<ui:define name="contenu">
		<h:form>
			<p:fieldset legend="#{detailArticleBean.article.titre}">
				<h:panelGrid columns="2" cellpadding="10">
					<p:graphicImage value="#{detailArticleBean.image}"/>
					<h:outputText value="#{detailArticleBean.article.contenu}" />
					<br/>
					<h:outputText value="Auteur: #{detailArticleBean.article.auteur.noms}" />
				</h:panelGrid>
			</p:fieldset>
		</h:form>
	</ui:define>
</ui:composition>
</html>